﻿<!DOCTYPE html>
<#assign menu="config">
<#assign submenu="system_basic">
<html lang="en">
<head>
	<#include "/manage/head.ftl">
</head>
<body>
<#include "/manage/top.ftl">
	<div class="main-container" id="main-container">
		<script type="text/javascript">
        	try{ace.settings.check('main-container' , 'fixed')}catch(e){}
    	</script>
    	<div class="main-container-inner">
    		 <a class="menu-toggler" id="menu-toggler" href="#">
            	<span class="menu-text"></span>
        	 </a>
        	 <#include "/manage/silderbar.ftl">
        	 <div class="main-content">
        	 	<div class="breadcrumbs" id="breadcrumbs">
                <script type="text/javascript">
                    try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
                </script>

                <ul class="breadcrumb">
                    <li>
                        <i class="icon-home home-icon"></i>
                        <a href="${BASE_PATH}/manage/index.htm">首页</a>
                    </li>
                    <li>
                        <a href="#">设置</a>
                    </li>
                    <li class="active">网站信息</li>
                </ul><!-- .breadcrumb -->

            </div>

            <div class="page-content">
                <div class="row">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
							<form id="basicForm" action="${BASE_PATH}/manage/config/basic.json" role="form" class="form-horizontal" autocomplete="off" method="post" >
					<div class="form-group">
						<label class="col-lg-2 col-sm-2 control-label" for="input1">网站名称</label>
						<div class="col-lg-8">
							<input type="text" placeholder="网站名称" id="input1" name="sitename"
								class="form-control" value="${SYS_SITENAME}">
						</div>
					</div>
					<div class="form-group">
						<label class="col-lg-2 col-sm-2 control-label" for="input2">网站描述</label>
						<div class="col-lg-8">
							<input type="text" placeholder="网站描述" id="input2" name="sitedesc"
								class="form-control" value="${SYS_SITEDESC}">
						</div>
					</div>
					<div class="form-group">
						<label class="col-lg-2 col-sm-2 control-label" for="input9">公司名称</label>
						<div class="col-lg-8">
							<input type="text" placeholder="公司名称" id="input11" name="company"
								class="form-control" value="${SYS_COMPANY}">
						</div>
					</div>
					<div class="form-group">
						<label class="col-lg-2 col-sm-2 control-label" for="input9">联系人</label>
						<div class="col-lg-8">
							<input type="text" placeholder="联系人" id="input9" name="linkman"
								class="form-control" value="${SYS_LINKMAN}">
						</div>
					</div>
					<div class="form-group">
						<label class="col-lg-2 col-sm-2 control-label" for="input10">联系手机</label>
						<div class="col-lg-8">
							<input type="text" placeholder="联系手机" id="input10" name="cellphone"
								class="form-control" value="${SYS_CELLPHONE}">
						</div>
					</div>
					<div class="form-group">
						<label class="col-lg-2 col-sm-2 control-label" for="input3">电话号码</label>
						<div class="col-lg-8">
							<input type="text" placeholder="电话号码" id="input3" name="phone"
								class="form-control" value="${SYS_PHONE}">
						</div>
					</div>
					<div class="form-group">
						<label class="col-lg-2 col-sm-2 control-label" for="input4">邮箱</label>
						<div class="col-lg-8">
							<input type="text" placeholder="邮箱" id="input4" name="email"
								class="form-control" value="${SYS_EMAIL}">
						</div>
					</div>
					<div class="form-group">
						<label class="col-lg-2 col-sm-2 control-label" for="input5">传真</label>
						<div class="col-lg-8">
							<input type="text" placeholder="传真" id="input5" name="fax"
								class="form-control" value="${SYS_FAX}">
						</div>
					</div>
					<div class="form-group">
						<label class="col-lg-2 col-sm-2 control-label" for="input6">QQ</label>
						<div class="col-lg-8">
							<input type="text" placeholder="QQ" id="input6" name="qq"
								class="form-control" value="${SYS_QQ}">
						</div>
					</div>
					<div class="form-group">
						<label class="col-lg-2 col-sm-2 control-label" for="input7">地址</label>
						<div class="col-lg-8">
							<input type="text" placeholder="地址" id="input7" name="address"
								class="form-control" value="${SYS_ADDRESS}">
						</div>
					</div>
					<div class="form-group">
						<label class="col-lg-2 col-sm-2 control-label" for="input8">备案号</label>
						<div class="col-lg-8">
							<input type="text" placeholder="地址" id="input8" name="register"
								class="form-control" value="${SYS_REGISTER}">
						</div>
					</div>
					<div class="form-group">
						<div class="col-lg-offset-2 col-lg-8">
							<button class="btn btn-danger" type="submit">保存</button>
						</div>
					</div>
				</form>
                        <!-- PAGE CONTENT ENDS -->
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
        	 </div>
    	</div>
	</div>
<#include "/manage/footer.ftl">
<script type="text/javascript">
	$(function() {
		$('#basicForm').ajaxForm({
			dataType : 'json',
			success : function(data) {
				if (data.result) {
					bootbox.alert("保存成功，将刷新页面", function() {
						window.location.reload();
					});					
				}else{
					showErrors($('#basicForm'),data.errors);
				}
			}
		});
	});	
</script>
</body>
</html>



